/*
 * Copyright (c) 2024.
 * @Copyright (c) 2024. Enigma_HF All Rights Reserved
 * @File:api.js
 * @Author: Enigma_HF
 * @Function:
 * @Date: 2024/9/20 下午4:03
 * @version:1.0
 * @Changes:
 * @Description:
 */
import request from "@/utils/request";
//const base = 'http://localhost:8080/mydemo/';

export function login(data){
    return request({
        url: `login`,
        method: 'POST',
        data:data,

    })
}


export function register(data){
    return request({
        url: `register`,
        method: 'POST',
        data:data,
    })
}


export function add(data,url=""){
    return request({
        url: url,
        method: 'POST',
        data:data,
    })
}

export function getList(data,url=""){
    return request({
        url: url,
        method: 'POST',
        data:data,
    })
}

export function update(data,url=""){
    return request({
        url: url,
        method: 'POST',
        data:data,
    })
}


export function del(data,url=""){
    return request({
        url: url,
        method: 'POST',
        data:data,
    })
}



